﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
    public class AdministratorManage
    {

        public static int HasPersonalInformationId(int pId)
        {
            Administrator admin = AdministratorService.GetAdminByPersonalInformationId(pId);
            if (admin != null)
                return admin.Id;
            else
                return -1;
        }

        public static bool HasId(int userId)
        {
            if (AdministratorService.GetAdministratorById(userId) != null)
                return true;
            else
                return false;
        }
    }
}
